// src/stores/project.ts
import { defineStore } from 'pinia';

export interface ProjectInfo {
  projectName: string;       // 项目名称
  projecVersion: string;     // 项目版本
  projecDescription: string; // 项目描述
}

export const useProjectStore = defineStore('project', {
  state: () => ({

    projectInfo: {
      projectName: '常规应急物资管理系统',
      projecVersion: '1.0.0',
      projecDescription: '常规应急物资管理系统',

    } as ProjectInfo,
  }),

  getters: {
    getProjectName: (state) => state.projectInfo.projectName,
    getProjecVersion: (state) => state.projectInfo.projecVersion,
    getProjecDescription: (state) => state.projectInfo.projecDescription,
  },
});